Quiz: Python Part-1

To View Tricks: Login Required

Number of Questions: 37

Question: 1 -

In which year was the Python language developed?

Options:
  1. 1998

  2. 1989

  3. 1990

  4. 1995

  5. Answer:

    1989

    Solution:

    Python language was developed by Guido van Rossum in the Netherlands in 1989.


Question: 2 -

What is the maximum possible length of an identifier?

Options:
  1. 64

  2. 32

  3. None of these

  4. 16

  5. Answer:

    None of these

    Solution:

    The maximum possible length of an identifier is not defined in the python language. It can be of any number.


Question: 3 -

Which one of the following is the correct extension of the Python file?

Options:
  1. None of these

  2. .py

  3. .p

  4. .python

  5. Answer:

    .py

    Solution not available.

Question: 4 -

What do we use to define a block of code in Python language?

Options:
  1. Key

  2. Brackets

  3. Indentation

  4. None of these

  5. Answer:

    Indentation

    Solution not available.

Question: 5 -

In which language is Python written?

Options:
  1. Java

  2. C++

  3. php

  4. C

  5. Answer:

    C

    Solution:

    Python is written in C programming language, and it is also called CPython.